﻿@model equinoxWeb.Models.Cliente
@{
    ViewBag.Title = "Registro club";
    Layout = (ViewBag.esCliente!=null && ViewBag.esCliente?"~/Views/Shared/_ClienteLayout.cshtml":"~/Views/Shared/_Layout.cshtml");
}
@using equinoxWeb.Models;

<script type='text/javascript' src="/Scripts/club.js"></script>
     
<!-- content -->
    <form class="form-horizontal" name="createForm" method="post">
        <fieldset>
            <legend>Registrar clubes</legend>
        </fieldset>
        <input type="hidden" value="@ViewBag.idCliente" name="idCliente" />
    <table id="tablaClub" class="table table-hover">
        <tr>
            <th>Nombre</th>
            <th>Direccion</th>
        </tr>
        @foreach (Club club in @ViewBag.clubResults){
            <tr>
                <td>
                    @club.Nombre
                </td>
                <td>
                    <textarea class="form-control reset" maxlength="150" name="direccion" disabled id="direccion">@club.Direccion</textarea></td>
            </tr>
        }
    </table>
    <br />
        
        
    <div class="form-group">
        <label class="col-md-4 col-sm-6 control-label"></label>
        <div class="col-md-3 col-sm-6">
        </div>
    </div>
    <div class="form-group">
        <label class="col-md-4 col-sm-6 control-label"></label>
        <div class="col-md-3 col-sm-6">
        </div>
    </div>

    <div class="form-group">
        <div class="col-md-3 col-sm-6">
            <button type="button" class="btn btn-large btn-primary" onclick="javascript:EditarClub(document.createForm)">Editar</button>&nbsp;
            <button type="button" class="btn btn-large" onclick="javascript:AbrirCliente(document.createForm);">Atras</button>
        </div>
    </div>

    </form>
    <!-- / content -->
